package graph;


import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;

public class WindowString extends Drawable {
	private String text;
	private int x;
	private int y;
	private Font font;

	
	public WindowString(Color color, String text, int x, int y, Font font) {
		super(color);
		this.text = text;
		this.x = x;
		this.y = y;
		this.font = font;
	}

	public void draw(Graphics g) {
		g.setColor(color);
		
		Font temp = g.getFont();
		g.setFont(font);
		g.drawString(text, x, y);
		g.setFont(temp);
		g.setColor(Color.BLACK);
		
		
		
		
		
	}
}
